package com.sharekitchen.service;

import com.sharekitchen.entity.Admin;
import com.sharekitchen.entity.User;

import java.util.List;

public interface UserService {
    //    检验该用户是否存在
    public boolean existUsername(String username);

    //    添加用户
    public boolean addUser(User user);

    //    获取用户信息
    public User findUserByName(String username);

//    获取所有用户信息
    List<User> findAllUser();

    public boolean deleteUserByName(String username);
}
